<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:py="http://genshi.edgewall.org/"
      xmlns:xi="http://www.w3.org/2001/XInclude">
<xi:include href="webpyte.html" />
<head>
</head>
<body>
  <div id="cpstatus">
    <table class="NiceTable">
      <tr><th>RAM</th><td py:content='"%s (%s %%)" % (proc["memory"], proc["mem"])' /></tr>
      <tr><th>virtual memory</th><td>${proc["virtual_mem"]}</td></tr>
      <tr><th>cpu</th> <td>${proc["cpu"]} %</td></tr>
      <tr><th>user</th><td py:content='proc["user"]' /></tr>
      <tr><th>pid</th> <td py:content='proc["pid"]' /></tr>
      <tr><th>command</th><td py:content='proc["command"]' /></tr>
    </table>
    <hr />
    <table class="NiceTable">
      <tr>
        <th>Thread #</th>
        <th title="in seconds">Idle Time</th>
        <th>Last Request Time</th>
        <th>URL</th>
      </tr>
      <tr py:for='t in threads'>
        <th><span py:content='t.number' title='ID: ${t.id}' /></th>
        <td py:content='"%.4f" % t.idle_time()' />
        <td py:content='"%.4f" % t.last_req_time()' />
        <td><a href="${t.url}" py:content='t.url' target="_blank" /></td>
      </tr>
    </table>
  </div>
</body>
</html>
